package java8_26.chongwu;

/**
 * @author oldliu
 * @since 1.0
 */
public class Person {
    private String name;
    private int age;
    private final String sex;
    public Person(){
        sex="男";//默认
    }
    public Person(String n,int a,String s){
        name=n;
        age=a;
        sex=s;
    }
    //不能给Sex加set

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }
//    public void setSex(String s){
//        sex=s;
//    }
}
